aboutsummaryrefslogtreecommitdiffstats
path: root/persistence/src/vespa/persistence/spi/abstractpersistenceprovider.cpp
blob: 04d06235f59a9c5ec57d90d87442726158af5daa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "abstractpersistenceprovider.h"
#include <vespa/document/base/documentid.h>
#include <vespa/vespalib/util/idestructorcallback.h>

namespace storage::spi {

void
AbstractPersistenceProvider::removeIfFoundAsync(const Bucket& b, Timestamp timestamp,
                                                const DocumentId& id, OperationComplete::UP onComplete)
{
    std::vector<IdAndTimestamp> ids;
    ids.emplace_back(id, timestamp);
    removeAsync(b, std::move(ids), std::move(onComplete));
}

BucketIdListResult
AbstractPersistenceProvider::getModifiedBuckets(BucketSpace) const
{
    return BucketIdListResult(BucketIdListResult::List());
}

}