#include <arpa/inet.h>
#include "lang/verify.h"
#include "handle.h"
-#include "tprintf.h"
+#include "threaded_log.h"
#include "rpc/marshall.h"
#include "lock.h"
proxy = handle(held_by.first).safebind();
if (proxy) {
int r;
- rlock_protocol::status ret = proxy->call(rlock_protocol::revoke, r, lid, held_by.second);
+ auto ret = (rlock_protocol::status)proxy->call(rlock_protocol::revoke, r, lid, held_by.second);
LOG("Revoke returned " << ret);
}
}
front = st.wanted_by.front();
}
- rlock_protocol::status ret = -1;
-
rpcc *proxy = NULL;
// try a few times?
//int t=5;
proxy = handle(front.first).safebind();
if (proxy) {
int r;
- ret = proxy->call(rlock_protocol::retry, r, lid, front.second);
+ auto ret = (rlock_protocol::status)proxy->call(rlock_protocol::retry, r, lid, front.second);
LOG("Retry returned " << ret);
}
}