Change error outputting on Inode get/put, but commented out again.
r = path_walk(to, &todir);
if (r < 0)
goto out_unlock;
+ todir->get();
r = _rename(fromdir, fromname.c_str(), todir, toname.c_str());
put_inode(todir);
out_unlock:
void get() {
ref++;
- //cout << "inode.get on " << this << " " << hex << inode.ino << dec << " now " << ref << std::endl;
+ //dout(0) << "inode.get on " << this << " " << hex << ino << dec << " now " << ref << dendl;
}
void put(int n=1) {
- ref -= n; assert(ref >= 0);
- //cout << "inode.put on " << this << " " << hex << inode.ino << dec << " now " << ref << std::endl;
+ ref -= n;
+ //dout(0) << "inode.put on " << this << " " << hex << ino << dec << " now " << ref << dendl;
+ assert(ref >= 0);
}
void ll_get() {