diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2018-08-30 23:28:47 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2018-09-02 12:54:29 +0200 |
commit | 070823baa4c3c397c8a5eb0378944187e7f4903c (patch) | |
tree | 5c0260ee081c74d4fb1965063e8445f6a9156640 /src/libstore/local-store.cc | |
parent | c9a08540c3d64d1285928d1ce3d3d416a2547dd9 (diff) |
Store: expose the protocol version used by a store
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index c91dbf241..c8117c0c6 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1332,6 +1332,12 @@ void LocalStore::verifyPath(const Path & path, const PathSet & store, } +unsigned int LocalStore::getProtocol() +{ + return PROTOCOL_VERSION; +} + + #if defined(FS_IOC_SETFLAGS) && defined(FS_IOC_GETFLAGS) && defined(FS_IMMUTABLE_FL) static void makeMutable(const Path & path) |