Skip to content

Commit 84b9f54

Browse files
janezhang10meta-codesync[bot]
authored andcommitted
Add GitBackingStore::co_getBlobAuxData
Summary: Add coroutine (now_task) version of getBlobAuxData. Reviewed By: SBones Differential Revision: D103303129 fbshipit-source-id: 8fc24c2d588104f37d4f3d44103069ee02c98512
1 parent 9dbba37 commit 84b9f54

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

eden/fs/store/git/GitBackingStore.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@ GitBackingStore::getBlobAuxData(const ObjectId&, const ObjectFetchContextPtr&) {
291291
nullptr, ObjectFetchContext::Origin::NotFetched};
292292
}
293293

294+
folly::coro::now_task<BackingStore::GetBlobAuxResult>
295+
GitBackingStore::co_getBlobAuxData(
296+
const ObjectId& id,
297+
const ObjectFetchContextPtr& context) {
298+
co_return BackingStore::GetBlobAuxResult{
299+
nullptr, ObjectFetchContext::Origin::NotFetched};
300+
}
301+
294302
ImmediateFuture<BackingStore::GetGlobFilesResult> GitBackingStore::getGlobFiles(
295303
const RootId& /* id */,
296304
const std::vector<std::string>& /* globs */,

eden/fs/store/git/GitBackingStore.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ class GitBackingStore final : public BijectiveBackingStore {
8484
folly::SemiFuture<BackingStore::GetBlobAuxResult> getBlobAuxData(
8585
const ObjectId& id,
8686
const ObjectFetchContextPtr& context) override;
87+
folly::coro::now_task<BackingStore::GetBlobAuxResult> co_getBlobAuxData(
88+
const ObjectId& id,
89+
const ObjectFetchContextPtr& context);
8790
ImmediateFuture<GetGlobFilesResult> getGlobFiles(
8891
const RootId& id,
8992
const std::vector<std::string>& globs,

0 commit comments

Comments
 (0)