a00531ae6d
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@1479 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
29 lines
469 B
C++
29 lines
469 B
C++
#ifndef _MERGER_H_
|
|
#define _MERGER_H_
|
|
|
|
#include "logstore.h"
|
|
#include "datatuple.h"
|
|
|
|
#include <stasis/common.h>
|
|
#undef try
|
|
#undef end
|
|
|
|
class merge_scheduler {
|
|
public:
|
|
merge_scheduler(logtable<datatuple> * ltable);
|
|
~merge_scheduler();
|
|
|
|
void start();
|
|
void shutdown();
|
|
|
|
void * memMergeThread();
|
|
void * diskMergeThread();
|
|
|
|
private:
|
|
pthread_t mem_merge_thread_;
|
|
pthread_t disk_merge_thread_;
|
|
logtable<datatuple> * ltable_;
|
|
const double MIN_R;
|
|
};
|
|
|
|
#endif
|