Skip to content

Commit

Permalink
Merge "Use pycassa xget() instead of get()"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Mar 17, 2016
2 parents 578840b + 8de9c9a commit d64f893
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config/common/tests/test_utils.py
Expand Up @@ -254,7 +254,7 @@ def remove(self, key, columns=None):
# end remove

def xget(self, key, column_start=None, column_finish=None,
include_timestamp=False, include_ttl=False):
column_count=0, include_timestamp=False, include_ttl=False):
col_names = []
if key in self._rows:
col_names = self._rows[key].keys()
Expand Down
6 changes: 2 additions & 4 deletions src/config/common/vnc_cassandra.py
Expand Up @@ -934,7 +934,7 @@ def filter_rows_object_list():
else: # grab all resources of this type
obj_fq_name_cf = self._obj_fq_name_cf
try:
cols = obj_fq_name_cf.get('%s' %(obj_type),
cols = obj_fq_name_cf.xget('%s' %(obj_type),
column_count=self._MAX_COL)
except pycassa.NotFoundException:
if count:
Expand All @@ -944,7 +944,7 @@ def filter_rows_object_list():

def filter_rows_no_anchor():
all_obj_infos = {}
for col_name, col_val in cols.items():
for col_name, _ in cols:
# give chance for zk heartbeat/ping
gevent.sleep(0)
col_name_arr = utils.decode_string(col_name).split(':')
Expand Down Expand Up @@ -1223,5 +1223,3 @@ def _read_back_ref(self, result, obj_uuid, back_ref_type,

result['%s_back_refs' % (back_ref_type)].append(back_ref_info)
# end _read_back_ref


0 comments on commit d64f893

Please sign in to comment.