Skip to content

Commit

Permalink
Stubs for BO organize function
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHogan committed Sep 14, 2021
1 parent e5bc1c9 commit a9751cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/buffer_organizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ namespace hermes {
BufferOrganizer::BufferOrganizer(int num_threads) : pool(num_threads) {
}

void LocalOrganize(const std::string &blob_name, double epsilon) {
(void)blob_name; (void)epsilon;


// TODO(chogan): Sync or async?

// Get biggest buffer on slowest tier
}

void LocalShutdownBufferOrganizer(SharedMemoryContext *context) {
// NOTE(chogan): ThreadPool destructor needs to be called manually since we
// allocated the BO instance with placement new.
Expand Down
2 changes: 2 additions & 0 deletions src/buffer_organizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ void LocalDecrementFlushCount(SharedMemoryContext *context,
const std::string &vbkt_name);
void AwaitAsyncFlushingTasks(SharedMemoryContext *context, RpcContext *rpc,
VBucketID id);

void LocalOrganize(const std::string &blob_name, double epsilon);
} // namespace hermes

#endif // HERMES_BUFFER_ORGANIZER_H_

0 comments on commit a9751cd

Please sign in to comment.