示例#1
0
func (loc *INodeDBSSLocator) Locate(history int) (bp string, err error) {
	err = gcutil.RetryIfNeeded(func() error {
		bp, err = loc.tryLocateOnce(history)
		return err
	}, sslog)
	return
}
示例#2
0
func (txio *DBTransactionLogIO) QueryTransactions(minID inodedb.TxID) (txs []inodedb.DBTransaction, err error) {
	err = gcutil.RetryIfNeeded(func() error {
		txs, err = txio.queryTransactionsOnce(minID)
		return err
	}, txlog)
	return
}
示例#3
0
func (loc *INodeDBSSLocator) Put(blobpath string, txid int64) error {
	return gcutil.RetryIfNeeded(func() error {
		return loc.tryPutOnce(blobpath, txid)
	}, sslog)
}