mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-13 03:12:13 +00:00
To help scylla-manager restore to map sstables to
nodes or tablets, print also the tokens of the
sstable first and last keys.
For example, the json output will now look like this:
```
$ build/dev/scylla sstable dump-summary /tmp/scylla-344593/data/ks/t-52a92590afd011ef9b68ba86378ed63b/me-3glp_0tm9_00uv52doobo0bvk2t7-big-Data.db | jq
{
"sstables": {
"/tmp/scylla-344593/data/ks/t-52a92590afd011ef9b68ba86378ed63b/me-3glp_0tm9_00uv52doobo0bvk2t7-big-Data.db": {
"header": {
"min_index_interval": 128,
"size": 1,
"memory_size": 16,
"sampling_level": 128,
"size_at_full_sampling": 0
},
"positions": [
4
],
"entries": [
{
"key": {
"token": "2008715943680221220",
"raw": "000400000064",
"value": "100"
},
"position": 0
}
],
"first_key": {
"token": "2008715943680221220",
"raw": "000400000064",
"value": "100"
},
"last_key": {
"token": "9010454139840013625",
"raw": "000400000003",
"value": "3"
}
}
}
}
```
Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
Closes scylladb/scylladb#21735