aboutsummaryrefslogtreecommitdiffstats
path: root/persistence/src/vespa/persistence/spi/read_consistency.cpp
blob: 557f4532ff165a174051f9e4cd78d4f5777c8afb (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
25
26
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "read_consistency.h"
#include <ostream>

#include <vespa/log/log.h>
LOG_SETUP(".persistence.spi.read_consistency");

namespace storage::spi {

std::ostream&
operator<<(std::ostream& os, ReadConsistency consistency)
{
    switch (consistency) {
    case ReadConsistency::STRONG:
        os << "STRONG";
        break;
    case ReadConsistency::WEAK:
        os << "WEAK";
        break;
    default:
        LOG_ABORT("should not reach here");
    }
    return os;
}

}