[Groonga-commit] groonga/grngo at b698375 [master] Move comments.

Back to archive index

susumu.yata null+****@clear*****
Fri Jul 10 17:27:49 JST 2015


susumu.yata	2015-07-10 17:27:49 +0900 (Fri, 10 Jul 2015)

  New Revision: b6983755c36d813a45117b28bc4360fca67b8b00
  https://github.com/groonga/grngo/commit/b6983755c36d813a45117b28bc4360fca67b8b00

  Message:
    Move comments.

  Modified files:
    grngo.go

  Modified: grngo.go (+2 -4)
===================================================================
--- grngo.go    2015-07-10 17:27:39 +0900 (cb0ec27)
+++ grngo.go    2015-07-10 17:27:49 +0900 (0e16a6a)
@@ -738,14 +738,13 @@ func (db *DB) FindTable(name string) (*Table, error) {
 	if rc != C.GRN_SUCCESS {
 		return nil, newGrnError("grngo_find_table()", &rc, db.ctx)
 	}
+	// Check the key type.
 	var keyInfo C.grngo_table_type_info
 	rc = C.grngo_table_get_key_info(db.ctx, obj, &keyInfo)
 	if rc != C.GRN_SUCCESS {
 		return nil, newGrnError("grngo_table_get_key_info()", &rc, db.ctx)
 	}
-	// Check the key type.
 	keyType := DataType(keyInfo.data_type)
-	// Find the destination table if the key is table reference.
 	var keyTable *Table
 	if keyInfo.ref_table != nil {
 		defer C.grn_obj_unlink(db.ctx, keyInfo.ref_table)
@@ -762,14 +761,13 @@ func (db *DB) FindTable(name string) (*Table, error) {
 		}
 		keyType = keyTable.keyType
 	}
+	// Check the value type.
 	var valueInfo C.grngo_table_type_info
 	rc = C.grngo_table_get_value_info(db.ctx, obj, &valueInfo)
 	if rc != C.GRN_SUCCESS {
 		return nil, newGrnError("grngo_table_get_value_info()", &rc, db.ctx)
 	}
-	// Check the value type.
 	valueType := DataType(valueInfo.data_type)
-	// Find the destination table if the value is table reference.
 	var valueTable *Table
 	if valueInfo.ref_table != nil {
 		defer C.grn_obj_unlink(db.ctx, valueInfo.ref_table)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index