fix in dbGet: decide use of db_field_log based on whether it has copy or not
This commit is contained in:
@@ -952,7 +952,7 @@ long dbGet(DBADDR *paddr, short dbrType,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!pfl) {
|
||||
if (!dbfl_has_copy(pfl)) {
|
||||
status = dbFastGetConvertRoutine[field_type][dbrType]
|
||||
(paddr->pfield, pbuf, paddr);
|
||||
} else {
|
||||
@@ -1000,7 +1000,7 @@ long dbGet(DBADDR *paddr, short dbrType,
|
||||
/* convert data into the caller's buffer */
|
||||
if (n <= 0) {
|
||||
; /*do nothing */
|
||||
} else if (!pfl) {
|
||||
} else if (!dbfl_has_copy(pfl)) {
|
||||
status = convert(paddr, pbuf, n, capacity, offset);
|
||||
} else {
|
||||
DBADDR localAddr = *paddr; /* Structure copy */
|
||||
|
||||
Reference in New Issue
Block a user