change method name

This commit is contained in:
ghost 2023-07-30 23:32:02 +03:00
parent 9e53618193
commit 0ea665f6e7
3 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,7 @@ switch ($argv[1]) {
$snapFilesExists = true;
if (!$db->getHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if (!$db->findHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if ($db->addHostPageSnapStorage($hostPageSnap->hostPageSnapId, $crc32name, $hostPageSnap->timeAdded)) {
@ -158,7 +158,7 @@ switch ($argv[1]) {
$snapFilesExists = true;
if (!$db->getHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if (!$db->findHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if ($db->addHostPageSnapStorage($hostPageSnap->hostPageSnapId, $crc32name, $hostPageSnap->timeAdded)) {

View File

@ -559,7 +559,7 @@ class MySQL {
return $this->_db->lastInsertId();
}
public function getHostPageSnapStorageByCRC32Name(int $hostPageSnapId, int $crc32name) {
public function findHostPageSnapStorageByCRC32Name(int $hostPageSnapId, int $crc32name) {
$query = $this->_db->prepare('SELECT * FROM `hostPageSnapStorage` WHERE `hostPageSnapId` = ? AND `crc32name` = ?');

View File

@ -63,7 +63,7 @@ switch ($type) {
// Generate storage id
$crc32name = crc32(sprintf('%s.%s', $name, $i));
if ($hostPageSnapStorage = $db->getHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
if ($hostPageSnapStorage = $db->findHostPageSnapStorageByCRC32Name($hostPageSnap->hostPageSnapId, $crc32name)) {
switch ($name) {