From 8cf5620b87ef3560a2405cbbfdbe6d24fb8dbdcb Mon Sep 17 00:00:00 2001 From: anatoly yakovenko Date: Tue, 17 Jul 2018 22:55:53 -0700 Subject: [PATCH] crdt_insert_new_entry_counter (#680) --- src/crdt.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/crdt.rs b/src/crdt.rs index 92f3106aea..cd384df60c 100644 --- a/src/crdt.rs +++ b/src/crdt.rs @@ -421,6 +421,9 @@ impl Crdt { v.debug_id(), v.version ); + if self.table.get(&v.id).is_none() { + inc_new_counter!("crdt-insert-new_entry", 1, 1); + } self.update_index += 1; let _ = self.table.insert(v.id, v.clone());