Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 467 for ctx_ (0.25 seconds)

  1. cmd/format-erasure.go

    		return err
    	}
    
    	disk.SetDiskID(format.Erasure.This)
    	if healID != "" {
    		ctx := context.Background()
    		ht := initHealingTracker(disk, healID)
    		return ht.save(ctx)
    	}
    	return nil
    }
    
    // loadFormatErasure - loads format.json from disk.
    func loadFormatErasure(disk StorageAPI, heal bool) (format *formatErasureV3, err error) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 23.1K bytes
    - Click Count (0)
  2. tensorflow/c/c_api_experimental.cc

        return;
      }
      status->status = tensorflow::unwrap(ctx)->EnableCollectiveOps(server_def);
    }
    
    TF_CAPI_EXPORT extern void TFE_AbortCollectiveOps(TFE_Context* ctx,
                                                      TF_Status* status) {
      tensorflow::EagerContext* context =
          tensorflow::ContextFromInterface(tensorflow::unwrap(ctx));
      auto collective_executor_handle = context->GetCollectiveExecutorHandle();
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 04 05:55:32 GMT 2025
    - 29.4K bytes
    - Click Count (0)
  3. cmd/metrics-v2.go

    		metricsGroupOpts: opts,
    	}
    	mg.RegisterRead(func(ctx context.Context) (metrics []MetricV2) {
    		objLayer := newObjectLayerFn()
    		if objLayer == nil {
    			return metrics
    		}
    
    		metrics = make([]MetricV2, 0, 50)
    		dataUsageInfo, err := loadDataUsageFromBackend(ctx, objLayer)
    		if err != nil {
    			metricsLogIf(ctx, err)
    			return metrics
    		}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 133.6K bytes
    - Click Count (0)
  4. internal/config/notify/parse.go

    	"github.com/rabbitmq/amqp091-go"
    )
    
    const (
    	formatNamespace = "namespace"
    )
    
    const (
    	logSubsys = "notify"
    )
    
    func logOnceIf(ctx context.Context, err error, id string, errKind ...any) {
    	logger.LogOnceIf(ctx, logSubsys, err, id, errKind...)
    }
    
    // ErrTargetsOffline - Indicates single/multiple target failures.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 47.5K bytes
    - Click Count (0)
  5. cmd/api-errors_test.go

    	{err: nil, errCode: ErrNone},
    	{err: errors.New("Custom error"), errCode: ErrInternalError}, // Case where err type is unknown.
    }
    
    func TestAPIErrCode(t *testing.T) {
    	ctx := t.Context()
    	for i, testCase := range toAPIErrorTests {
    		errCode := toAPIErrorCode(ctx, testCase.err)
    		if errCode != testCase.errCode {
    			t.Errorf("Test %d: Expected error code %d, got %d", i+1, testCase.errCode, errCode)
    		}
    	}
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  6. cmd/data-usage-cache.go

    // save the content of the cache to minioMetaBackgroundOpsBucket with the provided name.
    // Note that no locking is done when saving.
    func (d *dataUsageCache) save(ctx context.Context, store objectIO, name string) error {
    	select {
    	case <-ctx.Done():
    		return ctx.Err()
    	case maxConcurrentScannerSaves <- struct{}{}:
    	}
    
    	buf := bytebufferpool.Get()
    	defer func() {
    		<-maxConcurrentScannerSaves
    		buf.Reset()
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  7. tensorflow/c/eager/gradients.h

    // =============== Experimental C++ API for computing gradients ===============
    
    // Sample gradient function:
    //
    // class AddGradientFunction : public GradientFunction {
    //  public:
    //   Status Compute(Context* ctx,
    //                  absl::Span<AbstractTensorHandle* const> grad_inputs,
    //                  absl::Span<AbstractTensorHandle*> grad_outputs) override {
    //     grad_outputs[0] = grad_inputs[0];
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 6.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            // Uses concrete SMB1 negotiate response to exercise SMB1-specific branch
            // Build a concrete SMB1 negotiate response to expose ServerData fields
            jcifs.CIFSContext ctx = mock(jcifs.CIFSContext.class);
            when(ctx.getConfig()).thenReturn(config);
            when(config.getCapabilities()).thenReturn(0);
            when(config.getFlags2()).thenReturn(0);
            when(config.getMaxMpxCount()).thenReturn(1);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  9. cmd/erasure-encode_test.go

    	return "bad-disk"
    }
    
    func (a badDisk) AppendFile(ctx context.Context, volume string, path string, buf []byte) error {
    	return errFaultyDisk
    }
    
    func (a badDisk) ReadFileStream(ctx context.Context, volume, path string, offset, length int64) (io.ReadCloser, error) {
    	return nil, errFaultyDisk
    }
    
    func (a badDisk) CreateFile(ctx context.Context, origvolume, volume, path string, size int64, reader io.Reader) error {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  10. internal/http/check_port_linux.go

    					_ = syscall.SetsockoptString(int(fdPtr), syscall.SOL_SOCKET, syscall.SO_BINDTODEVICE, opts.Interface)
    				}
    			})
    			return nil
    		},
    	}
    
    	ctx, cancel := context.WithTimeout(context.Background(), time.Second)
    	defer cancel()
    
    	l, err := lc.Listen(ctx, "tcp", net.JoinHostPort(host, port))
    	if err != nil {
    		return err
    	}
    
    	// As we are able to listen on this network, the port is not in use.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed May 03 21:12:25 GMT 2023
    - 1.9K bytes
    - Click Count (0)
Back to Top