From 2ee9b01d3f81261139def46e2bab0f6695b7898d Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Mon, 29 Jun 2015 16:37:31 -0400 Subject: [PATCH] update secondary index on load --- libraries/db/include/graphene/db/index.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/db/include/graphene/db/index.hpp b/libraries/db/include/graphene/db/index.hpp index 1dc6218d..51e79e73 100644 --- a/libraries/db/include/graphene/db/index.hpp +++ b/libraries/db/include/graphene/db/index.hpp @@ -237,7 +237,10 @@ namespace graphene { namespace db { virtual const object& load( const std::vector& data )override { - return DerivedIndex::insert( fc::raw::unpack( data ) ); + const auto& result = DerivedIndex::insert( fc::raw::unpack( data ) ); + for( const auto& item : _sindex ) + item->object_inserted( result ); + return result; }