From 73804447e4f8b1fcced60b6d10ab8dd656e44bfa Mon Sep 17 00:00:00 2001 From: Dongryeol Lee Date: Wed, 10 Nov 2010 16:12:27 +0000 Subject: [PATCH] Clears out the temporary file before each run. --- .../thesis_research/core/table/distributed_table.test.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fastlib/trunk/contrib/dongryel/thesis_research/core/table/distributed_table.test.cc b/fastlib/trunk/contrib/dongryel/thesis_research/core/table/distributed_table.test.cc index 1a18b58b13..9d6e78fe39 100644 --- a/fastlib/trunk/contrib/dongryel/thesis_research/core/table/distributed_table.test.cc +++ b/fastlib/trunk/contrib/dongryel/thesis_research/core/table/distributed_table.test.cc @@ -103,6 +103,12 @@ int main(int argc, char *argv[]) { return 0; } + // Delete the teporary files and put a barrier. + std::stringstream temporary_file_name; + temporary_file_name << "tmp_file" << world.rank(); + remove(temporary_file_name.str().c_str()); + world.barrier(); + // Initialize the memory allocator. core::table::global_m_file_ = new core::table::MemoryMappedFile(); core::table::global_m_file_->Init(