US 12,468,664 B2
Data reading method and terminal
Yongbing Huang, Beijing (CN); Tao Huang, Beijing (CN); and Tingqiu Yuan, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Aug. 1, 2022, as Appl. No. 17/878,582.
Application 17/878,582 is a continuation of application No. PCT/CN2020/074294, filed on Feb. 4, 2020.
Prior Publication US 2022/0365680 A1, Nov. 17, 2022
Int. Cl. G06F 16/182 (2019.01); G06F 3/06 (2006.01)
CPC G06F 16/182 (2019.01) [G06F 3/0604 (2013.01); G06F 3/0638 (2013.01); G06F 3/067 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A first terminal in a distributed storage system, comprising:
a memory storing executable instructions;
a processor configured to execute the executable instructions to:
obtain a first data identifier identifying first data that the first terminal needs to read;
determine, based on the first data identifier, whether the first data is local data;
when the first data is not local data, obtain a first identifier of the first data, wherein the first identifier is a unique identifier that uniquely identifies the first data in the distributed storage system and is a character string of a Varchar(64) type;
obtain, from a mapping table based on the first identifier, a hash identifier derived from content of the first data, wherein the mapping table stores a correspondence between the first identifier and the hash identifier;
obtain, based on the hash identifier, a read address indicating that the first data is stored on a second terminal in the distributed storage system; and
retrieving the first data from the second terminal.