func (s *dbStore) CommitTxn(txn *dbTxn) error {
	if len(txn.lockedKeys) == 0 {
		return nil
	}
	return s.doCommit(txn)
}
// Commit writes the changed data in Batch.
Commit writes the changed data in Batch.
// Commit writes the changed data in Batch .
func (s *dbStore) CommitTxn(txn *dbTxn) error {
	if len(txn.lockedKeys) == 0 {
		return nil
	}
	return s.doCommit(txn)
}
func ( s * dbStore ) CommitTxn ( txn * dbTxn ) error { if len ( txn . lockedKeys ) == 0 { return nil } return s . doCommit ( txn ) }
Commit writes the changed data in Batch.
Commit writes the changed data in Batch .