Commit 0ce9ff6e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1856da8b
......@@ -182,6 +182,17 @@ using std::min;
using std::max;
using std::vector;
#define TRACE 1
#if TRACE
# define trace(format, ...) log::Debugf(format, ##__VA_ARGS__)
#else
# define trace(format, ...) do {} while (0)
#endif
// trace with op prefix taken from E.
#define etrace(format, ...) trace("%s", v(E(fmt::errorf(format, ##__VA_ARGS__))))
// wcfs::
namespace wcfs {
......@@ -446,7 +457,7 @@ error _Conn::__pin1(PinReq *req) {
if (!(mmap->blk_start <= req->blk && req->blk < mmap->blk_stop()))
continue; // blk ∉ mmap
//trace("\tremmapblk %d @%s" % (req->blk, (v(req.at) if req.at else "head")))
trace("\tremmapblk %d %s", req->blk, (req->at == TidHead ? v(req->at) : "@head"));
// pin only if virtmem did not dirtied page corresponding to this block already
// if virtmem dirtied the page - it will ask us to remmap it again after commit or abort.
......@@ -476,7 +487,7 @@ error _Conn::__pin1(PinReq *req) {
if (err != nil)
return err;
//trace("\t-> remmaped");
trace("\t-> remmaped");
}
// update f._pinned
......@@ -502,6 +513,8 @@ error _Conn::resync(zodb::Tid at) {
xerr::Contextf E("%s: resync -> @%s", v(wconn), v(at));
wconn._atMu.RUnlock();
etrace("...");
// XXX downErr -> E
// XXX at ^ (increases)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment