Skip to content

Commit

Permalink
Remove implicit TID handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Pchelolo committed Jul 31, 2017
1 parent c2597ef commit b349231
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,10 @@ class RBCassandra {
return this.store.getTableSchema(domain, req.params.table)
.then((res) => ({
status: 200,
headers: { etag: res.tid.toString() },
body: res.schema
}))
.catch((e) => ({
status: 500,

body: {
type: 'schema_query_error',
title: 'Internal error querying table schema in Cassandra storage backend',
Expand Down
3 changes: 0 additions & 3 deletions lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const P = require('bluebird');
const cass = require('cassandra-driver');
const TimeUuid = cass.types.TimeUuid;
const extend = require('extend');
const dbu = require('./dbutils');
const cassID = dbu.cassID;
Expand Down Expand Up @@ -302,8 +301,6 @@ class DB {
if (!req.schema) {
throw new Error('Table not found!');
}
const schema = req.schema;
const query = req.query;
const queryOptions = { consistency: req.consistency, prepare: true };
const queryInfo = dbu.buildPutQuery(req);

Expand Down
5 changes: 0 additions & 5 deletions lib/dbutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,6 @@ dbu.makeSchemaInfo = function makeSchemaInfo(schema, isMetaCF) {
// Then add some private properties
psi.versioned = false;

// Check if the last index entry is a timeuuid, which we take to mean that
// this table is versioned
const lastElem = schema.index[schema.index.length - 1];
const lastKey = lastElem.attribute;

// Extract attributes that need conversion in the read or write path
psi.conversions = {};
Object.keys(psi.attributes).forEach((att) => {
Expand Down

0 comments on commit b349231

Please sign in to comment.