Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newTierMemJournal (0.2 sec)

  1. cmd/tier-mem-journal.go

    package cmd
    
    import (
    	"context"
    	"fmt"
    
    	"github.com/minio/minio/internal/logger"
    )
    
    type tierMemJournal struct {
    	entries chan jentry
    }
    
    func newTierMemJournal(nevents int) *tierMemJournal {
    	return &tierMemJournal{
    		entries: make(chan jentry, nevents),
    	}
    }
    
    func (j *tierMemJournal) processEntries(ctx context.Context) {
    	for {
    		select {
    		case <-ctx.Done():
    Go
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Thu Aug 03 21:16:15 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  2. cmd/tier-journal.go

    func newTierDiskJournal() *tierDiskJournal {
    	return &tierDiskJournal{}
    }
    
    // NewTierJournal initializes tier deletion journal
    func NewTierJournal() *TierJournal {
    	j := &TierJournal{
    		tierMemJournal:  newTierMemJournal(1000),
    		tierDiskJournal: newTierDiskJournal(),
    	}
    	return j
    }
    
    // Init initializes an in-memory journal built using a
    // buffered channel for new journal entries. It also initializes the on-disk
    Go
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top