summaryrefslogtreecommitdiff
path: root/src/persistence_client_library_db_access.c
diff options
context:
space:
mode:
authorIngo Huerner <ingo.huerner@xse.de>2013-11-26 14:57:52 +0100
committerIngo Huerner <ingo.huerner@xse.de>2013-11-26 14:57:52 +0100
commitcc29af37f108676ba6cdac4ac0531f6b7db9c263 (patch)
treed8b53415bc60302e6e202278e9c39d03b817e45e /src/persistence_client_library_db_access.c
parentacb1055872cae0940eb4d3f3c9e256a984ac81ce (diff)
downloadpersistence-client-library-cc29af37f108676ba6cdac4ac0531f6b7db9c263.tar.gz
Corrected error codes in doxygen function doc; corrected problem with return value when using write key function for shared values
Diffstat (limited to 'src/persistence_client_library_db_access.c')
-rw-r--r--src/persistence_client_library_db_access.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/persistence_client_library_db_access.c b/src/persistence_client_library_db_access.c
index 8877a91..976fbdd 100644
--- a/src/persistence_client_library_db_access.c
+++ b/src/persistence_client_library_db_access.c
@@ -406,7 +406,12 @@ int pers_db_write_key(char* dbPath, char* key, PersistenceInfo_s* info, unsigned
if(PersistenceStorage_shared == info->configKey.storage)
{
- write_size = pers_send_Notification_Signal(key, &info->context, pclNotifyStatus_changed);
+ int rval = pers_send_Notification_Signal(key, &info->context, pclNotifyStatus_changed);
+ if(rval <= 0)
+ {
+ DLT_LOG(gDLTContext, DLT_LOG_ERROR, DLT_STRING("pers_db_write_key ==> failed to send notification signal"));
+ write_size = rval;
+ }
}
}
else
@@ -445,7 +450,12 @@ int pers_db_write_key(char* dbPath, char* key, PersistenceInfo_s* info, unsigned
if(write_size >= 0) // success ==> send deleted notification
{
- write_size = pers_send_Notification_Signal(key, &info->context, pclNotifyStatus_changed);
+ int rval = pers_send_Notification_Signal(key, &info->context, pclNotifyStatus_changed);
+ if(rval <= 0)
+ {
+ DLT_LOG(gDLTContext, DLT_LOG_ERROR, DLT_STRING("pers_db_write_key ==> failed to send notification signal"));
+ write_size = rval;
+ }
}
}
else