We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4ede5f commit 01c6720Copy full SHA for 01c6720
1 file changed
src/paimon/common/fs/external_path_provider.h
@@ -46,8 +46,7 @@ class ExternalPathProvider {
46
///
47
/// @return the next external data path
48
std::string GetNextExternalDataPath(const std::string& file_name) {
49
- size_t position =
50
- (position_.fetch_add(1, std::memory_order_relaxed) + 1) % external_table_paths_.size();
+ size_t position = (++position_) % external_table_paths_.size();
51
return PathUtil::JoinPath(
52
PathUtil::JoinPath(external_table_paths_[position], relative_bucket_path_), file_name);
53
}
0 commit comments