Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for modTime (0.08 sec)

  1. cmd/xl-storage-format-v2.go

    // Returns false on ties.
    func (x xlMetaV2VersionHeader) sortsBefore(o xlMetaV2VersionHeader) bool {
    	if x == o {
    		return false
    	}
    	// Prefer newest modtime.
    	if x.ModTime != o.ModTime {
    		return x.ModTime > o.ModTime
    	}
    
    	// The following doesn't make too much sense, but we want sort to be consistent nonetheless.
    	// Prefer lower types
    	if x.Type != o.Type {
    		return x.Type < o.Type
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (0)
  2. cmd/erasure-object.go

    		}
    	}
    
    	modTime = UTCNow() // We only preserve modTime if dstOpts.MTime is true.
    	// in all other cases mtime is latest.
    
    	fi.VersionID = versionID // set any new versionID we might have created
    	fi.ModTime = modTime     // set modTime for the new versionID
    	if !dstOpts.MTime.IsZero() {
    		modTime = dstOpts.MTime
    		fi.ModTime = dstOpts.MTime
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    			Versioned:          true,
    			MTime:              srcObjInfo.ModTime,
    			DeleteMarker:       srcObjInfo.DeleteMarker,
    			ReplicationRequest: true,
    		})
    		return err
    	}
    
    	opts := ObjectOptions{
    		VersionID:    srcObjInfo.VersionID,
    		MTime:        srcObjInfo.ModTime,
    		PreserveETag: srcObjInfo.ETag,
    		UserDefined:  srcObjInfo.UserDefined,
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2_gen.go

    		case "ID":
    			err = dc.ReadExactBytes((z.VersionID)[:])
    			if err != nil {
    				err = msgp.WrapError(err, "VersionID")
    				return
    			}
    		case "MTime":
    			z.ModTime, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "ModTime")
    				return
    			}
    		case "MetaSys":
    			var zb0002 uint32
    			zb0002, err = dc.ReadMapHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "MetaSys")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/lifecycle_test.go

    	now := time.Now().UTC()
    
    	obj1 := ObjectOpts{
    		Name:     "obj1",
    		IsLatest: true,
    		ModTime:  now,
    	}
    
    	obj2 := ObjectOpts{
    		Name:     "abcd/obj2",
    		IsLatest: true,
    		ModTime:  now,
    	}
    
    	obj3 := ObjectOpts{
    		Name:     "obj3",
    		IsLatest: true,
    		ModTime:  now,
    		UserTags: "priority=low",
    	}
    
    	// Go back seven days in the past
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. cmd/object-api-datatypes_gen.go

    			}
    		case "Name":
    			z.Name, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "Name")
    				return
    			}
    		case "ModTime":
    			z.ModTime, bts, err = msgp.ReadTimeBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "ModTime")
    				return
    			}
    		case "VersionID":
    			z.VersionID, bts, err = msgp.ReadStringBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "VersionID")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    	// the latest object.
    	sort.Slice(results, func(i, j int) bool {
    		a, b := results[i], results[j]
    		if a.oi.ModTime.Equal(b.oi.ModTime) {
    			// On tiebreak, select the lowest pool index.
    			return a.zIdx < b.zIdx
    		}
    		return a.oi.ModTime.After(b.oi.ModTime)
    	})
    
    	for _, res := range results {
    		err := res.err
    		if err == nil {
    			return res.oi, res.zIdx, nil
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  8. src/archive/zip/reader_test.go

    	}
    	if !ft.Modified.IsZero() && !equalTimeAndZone(f.Modified, ft.Modified) {
    		t.Errorf("%s: Modified=%s, want %s", f.Name, f.Modified, ft.Modified)
    	}
    	if !ft.ModTime.IsZero() && !equalTimeAndZone(f.ModTime(), ft.ModTime) {
    		t.Errorf("%s: ModTime=%s, want %s", f.Name, f.ModTime(), ft.ModTime)
    	}
    
    	testFileMode(t, f, ft.Mode)
    
    	size := uint64(f.UncompressedSize)
    	if size == uint32max {
    		size = f.UncompressedSize64
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    		case isSysErrIO(err):
    			return VolInfo{}, errFaultyDisk
    		default:
    			return VolInfo{}, err
    		}
    	}
    	// As os.Lstat() doesn't carry other than ModTime(), use ModTime()
    	// as CreatedTime.
    	createdTime := st.ModTime()
    	return VolInfo{
    		Name:    volume,
    		Created: createdTime,
    	}, nil
    }
    
    // DeleteVol - delete a volume.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  10. cmd/erasure-healing_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Write xl.meta with different modtime to simulate the case where a disk had
    	// gone down when an object was replaced by a new object.
    	fileInfoOutDated := fileInfoPreHeal
    	fileInfoOutDated.ModTime = time.Now()
    	err = disk.WriteMetadata(context.Background(), "", bucket, object, fileInfoOutDated)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
Back to top