Skip to content

Commit

Permalink
Remove temporary code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHogan committed Jan 5, 2022
1 parent ec9a521 commit d6b6962
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 30 deletions.
9 changes: 0 additions & 9 deletions src/buffer_pool_visualizer/buffer_pool_visualizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,6 @@ static u32 global_color_counter;
static DebugState *global_id_debug_state;
static DebugState *global_map_debug_state;

// namespace std {
// template <> struct hash<DebugHeapAllocation> {
// inline size_t operator()(const DebugHeapAllocation &dha) const {
// std::hash<u32> u32_hasher;

// return u32_hasher(dha.offset) ^ u32_hasher(dha.size);
// }
// };

struct Range {
int start;
int end;
Expand Down
40 changes: 19 additions & 21 deletions test/mdm_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ using namespace hermes; // NOLINT(*)
namespace hapi = hermes::api;
using HermesPtr = std::shared_ptr<hapi::Hermes>;

#if 0
static void TestNullIds() {
BucketID bkt_id = {};
VBucketID vbkt_id = {};
Expand Down Expand Up @@ -336,7 +335,6 @@ static void TestBlobInfoMap() {

hermes->Finalize(true);
}
#endif

static void TestMdmViz() {
using namespace hermes; // NOLINT(*)
Expand Down Expand Up @@ -390,25 +388,25 @@ int main(int argc, char **argv) {
return 1;
}

// HermesPtr hermes = hapi::InitHermes(NULL, true);

// TestNullIds();
// TestGetMapMutex();
// TestLocalGetNextFreeBucketId(hermes);
// TestGetOrCreateBucketId(hermes);
// TestRenameBlob(hermes);
// TestRenameBucket(hermes);
// TestBucketRefCounting(hermes);
// TestMaxNameLength(hermes);
// TestGetRelativeNodeId();
// TestDuplicateBlobNames(hermes);
// TestGetBucketIdFromBlobId(hermes);
// TestHexStringToU64();

// hermes->Finalize(true);

// TestSwapBlobsExistInBucket();
// TestBlobInfoMap();
HermesPtr hermes = hapi::InitHermes(NULL, true);

TestNullIds();
TestGetMapMutex();
TestLocalGetNextFreeBucketId(hermes);
TestGetOrCreateBucketId(hermes);
TestRenameBlob(hermes);
TestRenameBucket(hermes);
TestBucketRefCounting(hermes);
TestMaxNameLength(hermes);
TestGetRelativeNodeId();
TestDuplicateBlobNames(hermes);
TestGetBucketIdFromBlobId(hermes);
TestHexStringToU64();

hermes->Finalize(true);

TestSwapBlobsExistInBucket();
TestBlobInfoMap();
TestMdmViz();

MPI_Finalize();
Expand Down

0 comments on commit d6b6962

Please sign in to comment.