主权项 |
1. A non-transitory recording medium storing a content acquisition program that causes a computer to execute a process, the process comprising:
receiving a content acquisition request including identification information of a device, identification information of acquisition target content, and sequence information indicating a sequence of accumulation of the acquisition target content in the device; referencing other device holding information in which identification information of another device is associated with sequence information corresponding to the oldest content held by the other device; making a request to the device indicated by the device identification information included in the content acquisition request for the acquisition target content, in cases in which the accumulation sequence indicated by the sequence information associated with the identification information of the device included in the content acquisition request is older than the accumulation sequence indicated by the sequence information included in the content acquisition request; searching for a device holding the acquisition target content and making a request to a found device for the acquisition target content, in cases in which the accumulation sequence indicated by the sequence information associated with the identification information of the device included in the content acquisition request is newer than the accumulation sequence indicated by the sequence information included in the content acquisition request; storing, as the other device holding information, the requested content and the identification information of the device that is the acquisition source of the acquired content, in association with the sequence information corresponding to the oldest content held by that device; and responding to the request source of the content acquisition request with identification information of the acquired content, identification information of the device that received the content acquisition request, and sequence information indicating the sequence in which the acquired content was accumulated in the device that received the content acquisition request. |