Skip to content

Commit

Permalink
Tiny formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
posulliv committed Feb 22, 2011
1 parent e297d5c commit f2eaaea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions libcassandra/cassandra.cc
Expand Up @@ -121,7 +121,7 @@ void Cassandra::insertColumn(const string& key,
const string& column_name,
const string& value,
ConsistencyLevel::type level,
int32_t ttl)
int32_t ttl= 0)
{
ColumnParent col_parent;
col_parent.column_family.assign(column_family);
Expand All @@ -134,7 +134,8 @@ void Cassandra::insertColumn(const string& key,
col.name.assign(column_name);
col.value.assign(value);
col.timestamp= createTimestamp();
if (ttl) {
if (ttl)
{
col.ttl=ttl;
col.__isset.ttl=true;
}
Expand Down
3 changes: 2 additions & 1 deletion libcassandra/cassandra.h
Expand Up @@ -95,14 +95,15 @@ class Cassandra
* @param[in] column_name the column name
* @param[in] value the column value
* @param[in] level consistency level
* @param[in] ttl time to live
*/
void insertColumn(const std::string& key,
const std::string& column_family,
const std::string& super_column_name,
const std::string& column_name,
const std::string& value,
org::apache::cassandra::ConsistencyLevel::type level,
int32_t ttl=0);
int32_t ttl);

/**
* Insert a column, possibly inside a supercolumn
Expand Down

0 comments on commit f2eaaea

Please sign in to comment.