This kills the last FileStore reference in the OSD.
Signed-off-by: Sage Weil <sage@inktank.com>
using namespace std;
#include "osd/OSD.h"
-#include "os/FileStore.h"
+#include "os/ObjectStore.h"
#include "mon/MonClient.h"
#include "include/ceph_features.h"
global_init_daemonize(g_ceph_context, 0);
common_init_finish(g_ceph_context);
- if (g_conf->filestore_update_to >= (int)FileStore::target_version) {
+ if (g_conf->filestore_update_to >= (int)store->get_target_version()) {
int err = OSD::do_convertfs(store);
if (err < 0) {
derr << TEXT_RED << " ** ERROR: error converting store " << g_conf->osd_data
class FileStore : public JournalingObjectStore,
public md_config_obs_t
{
+ static const uint32_t target_version = 3;
public:
+ uint32_t get_target_version() {
+ return target_version;
+ }
struct FSPerfTracker {
PerfCounters::avg_tracker<uint64_t> os_commit_latency;
return perf_tracker.get_cur_stats();
}
- static const uint32_t target_version = 3;
private:
string internal_name; ///< internal name, used to name the perfcounter instance
string basedir, journalpath;
virtual int statfs(struct statfs *buf) = 0;
+ /**
+ * get the most recent "on-disk format version" supported
+ */
+ virtual uint32_t get_target_version() = 0;
+
/**
* get ideal min value for collection_list_partial()
*