Skip to content

Commit

Permalink
Merge pull request #5235 from ryanrussell/tools-readability
Browse files Browse the repository at this point in the history
chore: `tools/` readability improvements
  • Loading branch information
dotnwat committed Jun 27, 2022
2 parents 6fd31ec + 620384a commit 9dc0848
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tools/metadata_viewer/kvstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def read_vnode(rdr):
return ret


def read_confiugrations_map(rdr):
def read_configurations_map(rdr):
ret = {}
sz = rdr.read_uint64()
for _ in range(0, sz):
Expand Down Expand Up @@ -303,7 +303,7 @@ def decode_raft_value(type, v):
ret['term'] = rdr.read_int64()
return ret
elif type == 1: # config map
return read_confiugrations_map(rdr)
return read_configurations_map(rdr)
elif type == 2: # config_latest_known_offset
return rdr.read_int64()
elif type == 3: # last_applied_offset
Expand Down
2 changes: 1 addition & 1 deletion tools/metadata_viewer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def decode_acl_resource(r):

def decode_acl_pattern_type(p):
if p == 0:
return 'litteral'
return 'literal'
elif p == 1:
return 'prefixed'

Expand Down
2 changes: 1 addition & 1 deletion tools/metadata_viewer/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def generate_options():
'kafka_records'
],
required=True,
help='opertion to execute')
help='operation to execute')
parser.add_argument(
'--topic',
type=str,
Expand Down
2 changes: 1 addition & 1 deletion tools/redpanda-gdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def used_span_size(self):
Due to https://github.com/scylladb/seastar/issues/625 there may be some
pages at the end of the span which are not used by the small pool.
We try to detect this. It's not 100% accurrate but should work in most cases.
We try to detect this. It's not 100% accurate but should work in most cases.
Returns 0 for free spans.
"""
Expand Down

0 comments on commit 9dc0848

Please sign in to comment.