File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1277,9 +1277,7 @@ HGraph::deserialize_label_info(StreamReader& reader) const {
12771277 StreamReader::ReadObj (reader, key);
12781278 InnerIdType value;
12791279 StreamReader::ReadObj (reader, value);
1280- if (not this ->immutable_ ) {
1281- this ->label_table_ ->label_remap_ .emplace (key, value);
1282- }
1280+ this ->label_table_ ->label_remap_ .emplace (key, value);
12831281 }
12841282}
12851283
@@ -2012,9 +2010,6 @@ HGraph::SetImmutable() {
20122010 this ->neighbors_mutex_ .reset ();
20132011 this ->neighbors_mutex_ = std::make_shared<EmptyMutex>();
20142012 this ->searcher_ ->SetMutexArray (this ->neighbors_mutex_ );
2015- this ->label_table_ ->use_reverse_map_ = false ;
2016- STLUnorderedMap<LabelType, InnerIdType> empty_remap (allocator_);
2017- this ->label_table_ ->label_remap_ .swap (empty_remap);
20182013 this ->immutable_ = true ;
20192014}
20202015
You can’t perform that action at this time.
0 commit comments