-
Irene Y Zhang authored0bce26cc
txnstore.cc 1.44 KiB
// -*- mode: c++; c-file-style: "k&r"; c-basic-offset: 4 -*-
// vim: set ts=4 sw=4:
/***********************************************************************
*
* common/txnstore.cc:
* Interface for a single node transactional store serving as a
* server-side backend
*
**********************************************************************/
#include "common/txnstore.h"
using namespace std;
TxnStore::TxnStore() {}
TxnStore::~TxnStore() {}
int
TxnStore::Get(uint64_t id, const string &key, pair<Timestamp, string> &value)
{
Panic("Unimplemented GET");
return 0;
}
int
TxnStore::Get(uint64_t id, const string &key, const Timestamp ×tamp,
pair<Timestamp, string> &value)
{
Panic("Unimplemented GET");
return 0;
}
int
TxnStore::Put(uint64_t id, const string &key, const string &value)
{
Panic("Unimplemented PUT");
return 0;
}
int
TxnStore::Prepare(uint64_t id, const Transaction &txn)
{
Panic("Unimplemented PREPARE");
return 0;
}
int
TxnStore::Prepare(uint64_t id, const Transaction &txn,
const Timestamp ×tamp, Timestamp &proposed)
{
Panic("Unimplemented PREPARE");
return 0;
}
void
TxnStore::Commit(uint64_t id, uint64_t timestamp)
{
Panic("Unimplemented COMMIT");
}
void
TxnStore::Abort(uint64_t id, const Transaction &txn)
{
Panic("Unimplemented ABORT");
}
void
TxnStore::Load(const string &key, const string &value, const Timestamp ×tamp)
{
Panic("Unimplemented LOAD");
}