aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storage/distributor/blockingoperationstarter.cpp
blob: 1b3540253b76357d994e3f7fb37be7759b0b3bc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "blockingoperationstarter.h"

namespace storage::distributor {

bool
BlockingOperationStarter::start(const std::shared_ptr<Operation>& operation, Priority priority)
{
    if (operation->isBlocked(_operation_context, _operation_sequencer)) {
        operation->on_blocked();
        return true;
    }
    return _starterImpl.start(operation, priority);
}

}