Skip to content

Commit 2062b8b

Browse files
authored
docs: minor improvement for docs (#6430)
Signed-off-by: rifeplight <[email protected]>
1 parent 49027c6 commit 2062b8b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/en/reference/how_to_set_up_object_storage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ This is not included by default, please build it with tag `bunny`
535535

536536
#### Usage
537537

538-
Create a Storage Zone and use the Zone Name with the Hostname of the Location seperated by a dot as Bucket name and the `Write Password` as Secret Key.
538+
Create a Storage Zone and use the Zone Name with the Hostname of the Location separated by a dot as Bucket name and the `Write Password` as Secret Key.
539539

540540
```shell
541541
juicefs format \
@@ -1083,7 +1083,7 @@ juicefs format \
10831083
```
10841084

10851085
:::note
1086-
Don't use the same TiKV cluster for both metadata and data, because JuiceFS uses non-transactional protocol (RawKV) for objects and transactional protocol (TnxKV) for metadata. The TxnKV protocol has special encoding for keys, so they may overlap with keys even they has different prefixes. BTW, it's recommmended to enable [Titan](https://tikv.org/docs/latest/deploy/configure/titan) in TiKV for data cluster.
1086+
Don't use the same TiKV cluster for both metadata and data, because JuiceFS uses non-transactional protocol (RawKV) for objects and transactional protocol (TnxKV) for metadata. The TxnKV protocol has special encoding for keys, so they may overlap with keys even they has different prefixes. BTW, it's recommended to enable [Titan](https://tikv.org/docs/latest/deploy/configure/titan) in TiKV for data cluster.
10871087
:::
10881088

10891089
#### Set up TLS

pkg/meta/base_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3699,7 +3699,7 @@ func TestTxBatchLock(t *testing.T) {
36993699
}()
37003700
}
37013701

3702-
// testCheckQuotaFileOwner
3702+
// testCheckQuotaFileOwnerSimple
37033703
func testCheckQuotaFileOwnerSimple(t *testing.T, m Meta) {
37043704
ctx := Background()
37053705
parent := RootInode

pkg/object/dragonfly.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ type ObjectMetadata struct {
112112
// ContentLanguage is Content-Language header.
113113
ContentLanguage string
114114

115-
// ContentLanguage is Content-Length header.
115+
// ContentLength is Content-Length header.
116116
ContentLength int64
117117

118118
// ContentType is Content-Type header.

pkg/object/encrypt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (e *dataEncryptor) Decrypt(ciphertext []byte) ([]byte, error) {
242242
keyLen := int(ciphertext[0])<<8 + int(ciphertext[1])
243243
nonceLen := int(ciphertext[2])
244244
if 3+keyLen+nonceLen >= len(ciphertext) {
245-
return nil, fmt.Errorf("misformed ciphertext: %d %d", keyLen, nonceLen)
245+
return nil, fmt.Errorf("malformed ciphertext: %d %d", keyLen, nonceLen)
246246
}
247247
ciphertext = ciphertext[3:]
248248
cipherkey := ciphertext[:keyLen]

pkg/utils/buffer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (b *Buffer) Get(l int) []byte {
137137
return b.buf[b.off-l : b.off]
138138
}
139139

140-
// SetBytes initilizes the Buffer with BigEndian ordering
140+
// SetBytes initializes the Buffer with BigEndian ordering
141141
func (b *Buffer) SetBytes(buf []byte) {
142142
b.endian = binary.BigEndian
143143
b.off = 0

0 commit comments

Comments
 (0)