update secondary index on load
This commit is contained in:
parent
e43a538bdc
commit
2ee9b01d3f
1 changed files with 4 additions and 1 deletions
|
|
@ -237,7 +237,10 @@ namespace graphene { namespace db {
|
||||||
|
|
||||||
virtual const object& load( const std::vector<char>& data )override
|
virtual const object& load( const std::vector<char>& data )override
|
||||||
{
|
{
|
||||||
return DerivedIndex::insert( fc::raw::unpack<object_type>( data ) );
|
const auto& result = DerivedIndex::insert( fc::raw::unpack<object_type>( data ) );
|
||||||
|
for( const auto& item : _sindex )
|
||||||
|
item->object_inserted( result );
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue