Пример #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)
}