*/
-#include <map>
-using namespace std;
-
-#include <ext/hash_map>
-using namespace __gnu_cxx;
-
#include "include/Context.h"
#include "include/buffer.h"
#include "include/hash.h"
map<block_t,ExtentCsum>::iterator p = extent_map.lower_bound(len);
if (p != extent_map.begin() &&
- (p == extent_map.end() || p->first > len && p->first)) {
+ (p == extent_map.end() ||( p->first > len && p->first))) {
p--;
ExtentCsum &o = p->second;
if (o.ex.length > len - p->first) {
}
if (p != extent_map.begin() &&
- (p == extent_map.end() || p->first > start && p->first)) {
+ (p == extent_map.end() || (p->first > start && p->first))) {
p--;
if (p->second.ex.length > start - p->first) {
extent_t ex;
}
} else {
// note that client should perform stale/reap cleanup during reconnect.
- assert(issued & (CEPH_CAP_WR|CEPH_CAP_WRBUFFER) == 0); // ????
+ assert((issued & (CEPH_CAP_WR|CEPH_CAP_WRBUFFER)) == 0); // ????
if (in->filelock.is_xlocked())
in->filelock.set_state(LOCK_LOCK);
else
// success?
if (m->get_result() == -EINCLOCKED &&
- st->flags & CEPH_OSD_OP_INCLOCK_FAIL == 0) {
+ (st->flags & CEPH_OSD_OP_INCLOCK_FAIL) == 0) {
dout(7) << " got -EINCLOCKED, resubmitting" << dendl;
stat_submit(st);
delete m;