Repository: celix
Updated Branches:
  refs/heads/develop 79852c59a -> f7779cc84


Fix in RSA discovery-etcd: remote services where not published in etcd


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/f7779cc8
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/f7779cc8
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/f7779cc8

Branch: refs/heads/develop
Commit: f7779cc84bf0aadc0c5602a70b622161485d1467
Parents: 79852c5
Author: Erjan Altena <[email protected]>
Authored: Tue Dec 4 19:03:36 2018 +0100
Committer: Erjan Altena <[email protected]>
Committed: Tue Dec 4 19:03:36 2018 +0100

----------------------------------------------------------------------
 bundles/remote_services/discovery_etcd/src/etcd_watcher.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/f7779cc8/bundles/remote_services/discovery_etcd/src/etcd_watcher.c
----------------------------------------------------------------------
diff --git a/bundles/remote_services/discovery_etcd/src/etcd_watcher.c 
b/bundles/remote_services/discovery_etcd/src/etcd_watcher.c
index ebeac4f..faded7b 100644
--- a/bundles/remote_services/discovery_etcd/src/etcd_watcher.c
+++ b/bundles/remote_services/discovery_etcd/src/etcd_watcher.c
@@ -174,10 +174,10 @@ static celix_status_t 
etcdWatcher_addOwnFramework(etcd_watcher_pt watcher)
         }
     }
 
-       if (etcd_get(localNodePath, &value, &modIndex) != true) {
+       if (etcd_get(localNodePath, &value, &modIndex) != ETCDLIB_RC_OK) {
                etcd_set(localNodePath, endpoints, ttl, false);
        }
-       else if (etcd_set(localNodePath, endpoints, ttl, true) == false)  {
+       else if (etcd_set(localNodePath, endpoints, ttl, true) != 
ETCDLIB_RC_OK)  {
                logHelper_log(*watcher->loghelper, OSGI_LOGSERVICE_WARNING, 
"Cannot register local discovery");
     }
     else {

Reply via email to