VOL-1387 : Added watch mechanism
- Fixed a few failure cases
- Adjusted a few logs
Change-Id: Ied1ecb3d8996a338eee00e9643685482700e860b
diff --git a/db/model/root.go b/db/model/root.go
index c97cb8c..730cd39 100644
--- a/db/model/root.go
+++ b/db/model/root.go
@@ -202,10 +202,12 @@
result = r.node.Update(path, data, strict, "", nil)
}
- if r.Proxy.FullPath != r.Proxy.Path {
- r.syncParent(result, txid)
- } else {
- result.Finalize(false)
+ if result != nil {
+ if r.Proxy.FullPath != r.Proxy.Path {
+ r.syncParent(result, txid)
+ } else {
+ result.Finalize(false)
+ }
}
r.node.GetRoot().ExecuteCallbacks()