浏览代码

[hbase] Fix new cell upload

Abraham Elmahrek 11 年之前
父节点
当前提交
cf39ae23b4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/hbase/src/hbase/api.py

+ 1 - 1
apps/hbase/src/hbase/api.py

@@ -175,7 +175,7 @@ class HbaseApi(object):
   def putUpload(self, cluster, tableName, row, column, value):
     client = self.connectCluster(cluster)
     Mutation = get_thrift_type('Mutation')
-    return client.mutateRow(tableName, row, [Mutation(column=smart_str(column), value=value.file.read(value.size))], None)
+    return client.mutateRow(tableName, smart_str(row), [Mutation(column=smart_str(column), value=value.file.read(value.size))], None)
 
   def getRowQuerySet(self, cluster, tableName, columns, queries):
     client = self.connectCluster(cluster)