-#ifndef CEPH_D4NDIRECTORY_H
-#define CEPH_D4NDIRECTORY_H
+#pragma once
#include "rgw_common.h"
#include <cpp_redis/cpp_redis>
};
} } // namespace rgw::d4n
-
-#endif
-#ifndef CEPH_D4NPOLICY_H
-#define CEPH_D4NPOLICY_H
+#pragma once
#include <string>
#include <iostream>
};
} } // namespace rgw::d4n
-
-#endif
*
*/
-#include "rgw_redis_driver.h"
-#include "rgw_ssd_driver.h"
#include "rgw_sal_d4n.h"
#define dout_subsys ceph_subsys_rgw
#include "rgw_role.h"
#include "common/dout.h"
#include "rgw_aio_throttle.h"
+#include "rgw_ssd_driver.h"
#include "rgw_redis_driver.h"
#include "driver/d4n/d4n_directory.h"
if (addr.host == "" || addr.port == 0) {
ldpp_dout(dpp, 10) << "RGW Redis Cache: Redis cache endpoint was not configured correctly" << dendl;
- return EDESTADDRREQ;
+ return -EDESTADDRREQ;
}
client.connect("127.0.0.1", 6379, nullptr);
-#ifndef CEPH_REDISDRIVER_H
-#define CEPH_REDISDRIVER_H
+#pragma once
//#include <aedis.hpp>
#include <aio.h>
};
};
-} } // namespace rgw::cal
-
-#endif
+} } // namespace rgw::cache