• Steven Allen's avatar
    cleanup putMany implementation · bc42aaa6
    Steven Allen authored
    * Use a map for dirsToSync to avoid syncing the same dir multiple times.
    * Keep track of files in a slice, and use offsets into the slice to keep track
    of which ones have been closed/removed.
    
    Also, record the fact that we've created a temporary file _before_ we try to
    write to it, in case the write fails. That way, we'll try to remove it when we
    abort.
    bc42aaa6
flatfs.go 27.8 KB