This file is indexed.

/usr/include/dballe/db/v7/transaction.h is in libdballe-dev 7.21-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
27
28
29
30
31
32
33
34
35
36
37
#ifndef DBALLE_DB_V7_TRANSACTION_H
#define DBALLE_DB_V7_TRANSACTION_H

#include <dballe/transaction.h>
#include <dballe/db/v7/state.h>
#include <memory>

namespace dballe {
namespace db {
namespace v7 {

struct Transaction : public dballe::Transaction
{
    dballe::Transaction* sql_transaction = nullptr;
    State state;

    Transaction(std::unique_ptr<dballe::Transaction> sql_transaction)
        : sql_transaction(sql_transaction.release()) {}
    Transaction(const Transaction&) = delete;
    Transaction(Transaction&&) = delete;
    Transaction& operator=(const Transaction&) = delete;
    Transaction& operator=(Transaction&&) = delete;
    ~Transaction()
    {
        delete sql_transaction;
    }

    void commit() override { sql_transaction->commit(); }
    void rollback() override { sql_transaction->rollback(); }

    static Transaction& downcast(dballe::Transaction& transaction);
};

}
}
}
#endif