Skip to content

Commit 302b351

Browse files
authored
Merge pull request #2570 from bitshares/pr-2464-es-objects-delete
Fix data deletion in es_objects plugin, update program options
2 parents 78beec6 + bacd276 commit 302b351

File tree

6 files changed

+296
-240
lines changed

6 files changed

+296
-240
lines changed

libraries/chain/db_notify.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ void database::notify_changed_objects()
599599
MUST_IGNORE_CUSTOM_OP_REQD_AUTHS(chain_time));
600600
}
601601

602-
if( new_ids.size() )
602+
if( !new_ids.empty() )
603603
GRAPHENE_TRY_NOTIFY( new_objects, new_ids, new_accounts_impacted)
604604
}
605605

@@ -616,7 +616,7 @@ void database::notify_changed_objects()
616616
MUST_IGNORE_CUSTOM_OP_REQD_AUTHS(chain_time));
617617
}
618618

619-
if( changed_ids.size() )
619+
if( !changed_ids.empty() )
620620
GRAPHENE_TRY_NOTIFY( changed_objects, changed_ids, changed_accounts_impacted)
621621
}
622622

@@ -637,7 +637,7 @@ void database::notify_changed_objects()
637637
MUST_IGNORE_CUSTOM_OP_REQD_AUTHS(chain_time));
638638
}
639639

640-
if( removed_ids.size() )
640+
if( !removed_ids.empty() )
641641
GRAPHENE_TRY_NOTIFY( removed_objects, removed_ids, removed, removed_accounts_impacted )
642642
}
643643
}

0 commit comments

Comments
 (0)