Skip to content

Commit

Permalink
DBWriteImpl: remove redundant code (facebook#4450)
Browse files Browse the repository at this point in the history
Summary:
in `WriteThread::LaunchParallelMemTableWriters`, there is `  write_group->running.store(write_group->size);
`
https://github.com/facebook/rocksdb/blob/master/db/write_thread.cc#L510
Pull Request resolved: facebook#4450

Differential Revision: D10201900

Pulled By: yiwu-arbug

fbshipit-source-id: 96c8fbbba5aff7ba8a6ceb3117a2bd7cc9b2f34b
  • Loading branch information
UncP authored and facebook-github-bot committed Oct 11, 2018
1 parent ceded45 commit 531786e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions db/db_impl_write.cc
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ Status DBImpl::WriteImpl(const WriteOptions& write_options,
}
}
write_group.last_sequence = last_sequence;
write_group.running.store(static_cast<uint32_t>(write_group.size),
std::memory_order_relaxed);
write_thread_.LaunchParallelMemTableWriters(&write_group);
in_parallel_group = true;

Expand Down

0 comments on commit 531786e

Please sign in to comment.