This commit is contained in:
aozhiwei 2022-09-21 21:26:56 +08:00
parent 389a295e74
commit c1c1a57b57

View File

@ -16,7 +16,6 @@ class FragmentPool extends BaseModel {
self::decNum($fragmentId);
return $fragmentId;
}
return 110101;
return 0;
}
@ -29,7 +28,6 @@ class FragmentPool extends BaseModel {
self::decNum($fragmentId);
return $fragmentId;
}
return 110121;
return 0;
}
@ -40,7 +38,6 @@ class FragmentPool extends BaseModel {
foreach ($items as $item) {
$num += $item['fragment_num'];
}
return 100;
return $num;
}
@ -51,7 +48,6 @@ class FragmentPool extends BaseModel {
foreach ($items as $item) {
$num += $item['fragment_num'];
}
return 100;
return $num;
}
@ -91,6 +87,9 @@ class FragmentPool extends BaseModel {
'fragment_num' => function () {
return 'GREATEST(0, fragment_num - 1)';
},
'alloced_num' => function () {
return 'alloced_num + 1';
}
)
);
}