From 8a37b81f4e10003590d90e0b16cd986895d2d530 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 4 Oct 2017 11:28:35 -0700 Subject: [PATCH] LoadEntries: Don't emit NOTIFY_FLAGS. (#247) Fixes #246. --- src/main/native/cpp/Storage_load.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/native/cpp/Storage_load.cpp b/src/main/native/cpp/Storage_load.cpp index eb2a56e1db..16076af478 100644 --- a/src/main/native/cpp/Storage_load.cpp +++ b/src/main/native/cpp/Storage_load.cpp @@ -394,7 +394,7 @@ bool Storage::LoadEntries( NT_NOTIFY_NEW | NT_NOTIFY_LOCAL); } else if (*old_value != *i.second) { unsigned int notify_flags = NT_NOTIFY_UPDATE | NT_NOTIFY_LOCAL; - if (!was_persist) notify_flags |= NT_NOTIFY_FLAGS; + if (!was_persist && persistent) notify_flags |= NT_NOTIFY_FLAGS; m_notifier.NotifyEntry(entry->local_id, i.first, i.second, notify_flags); } else if (!was_persist && persistent) {