sapling/eden/fs
Wez Furlong 82c57b2bf8 implement getCurrentJournalPosition thrift API
Summary:
populate the position from the latest journal delta.

To facilitate this, we also define the mountGeneration value to be a
combination of the pid and the time at which we created the EdenMount object,
as well as a global counter that we bump for each mount.

The precise value and meaning of this bits really doesn't matter, just that we
are unlikely to pick the same value for this same mountPoint path again if we
were to remount in the future.

Since we are now in a position to report JournalPosition values to clients, now
is also a good time to fill out the `currentPosition` field for the
`getMaterializedEntries` thrift call, and to check that this value is
consistent with the value we return via `getCurrentJournalPosition`.

Reviewed By: simpkins

Differential Revision: D3872952

fbshipit-source-id: 2fbc25d2e9711035b66ab1bf5d746507b72de265
2016-09-26 13:52:25 -07:00
..
cli Fix ResourceWarning due to unclosed file. 2016-09-09 00:30:13 -07:00
config codemod: add explicit headers parameter for C/C++ rules under 2016-09-01 10:26:38 -07:00
inodes implement getCurrentJournalPosition thrift API 2016-09-26 13:52:25 -07:00
integration implement getCurrentJournalPosition thrift API 2016-09-26 13:52:25 -07:00
journal sample the snapshot id in the journal at mount time 2016-09-26 13:52:25 -07:00
model sample the snapshot id in the journal at mount time 2016-09-26 13:52:25 -07:00
rocksdb Include build files that were inadvertently excluded from the initial export. 2016-05-12 16:08:34 -07:00
service implement getCurrentJournalPosition thrift API 2016-09-26 13:52:25 -07:00
store fix license message in hg_import_helper.py 2016-09-12 19:49:13 -07:00