diff --git a/src/as/asCa.c b/src/as/asCa.c index 1f2cf4499..af951759d 100644 --- a/src/as/asCa.c +++ b/src/as/asCa.c @@ -131,7 +131,6 @@ LOCAL void eventCallback(struct event_handler_args eha) struct dbr_sts_double *pdata = eha.dbr; int Ilocked=FALSE; - if(!caInitializing) { FASTLOCK(&asLock); Ilocked = TRUE; diff --git a/src/as/asDbLib.c b/src/as/asDbLib.c index 380effce7..5df75bfcc 100644 --- a/src/as/asDbLib.c +++ b/src/as/asDbLib.c @@ -301,7 +301,10 @@ ASMEMBERPVT asDbGetMemberPvt(void *paddress) static void astacCallback(ASCLIENTPVT clientPvt,asClientStatus status) { - printf("astac callback: status=%d",status); + char *recordname; + + recordname = (char *)asGetClientPvt(clientPvt); + printf("astac callback %s: status=%d",recordname,status); printf(" get %s put %s\n",(asCheckGet(clientPvt) ? "Yes" : "No"), (asCheckPut(clientPvt) ? "Yes" : "No")); } @@ -329,6 +332,7 @@ int astac(char *pname,char *user,char *location) errMessage(status,"asAddClient error"); return(1); } else { + asPutClientPvt(*pasclientpvt,(void *)precord->name); asRegisterClientCallback(*pasclientpvt,astacCallback); } return(0);