List of commits:
Subject Hash Author Date (UTC)
Rework locking for struct update da8c09e15e485563d9573de3aff2a7ad999d2527 Catalin(ux) M. BOIE 2021-11-13 16:15:45
gpg: specify rsa 4096 instead of default because it does not work on f34 eccdc02a82ce87f426eebc995988f907d914a3c7 Catalin(ux) M. BOIE 2021-11-13 16:15:15
Cosmetic 0b0a9f2d1922d4d28052c6b1fbe737cc4302ce73 Catalin(ux) M. BOIE 2021-11-13 16:14:37
PHP8 corrections 51f2cabc7298b5006bf8f0d215c1a338bee92cdb Catalin(ux) M. BOIE 2021-11-13 16:13:13
.spec: require openldap-servers to test LDAP 84e469d5d9fe81509ff3421bdb6517786ea96628 Catalin(ux) M. BOIE 2021-11-06 20:09:07
Cosmetic a4543d8257235dc5c93dd5eecdfb9caa3c2acafa Catalin(ux) M. BOIE 2021-11-02 07:04:36
Fixed partion create logic c8897c0e6f31a0ab917d2320018c5920e0abd36b Catalin(ux) M. BOIE 2021-11-02 06:01:58
Typos corrected c1a5002a1763327f4df8d5d0b419fcc2604f4698 Catalin(ux) M. BOIE 2021-10-30 11:08:34
compare: Updated number of lines d1052eb4b72309dd216e3fd0da2dd311bbeb1383 Catalin(ux) M. BOIE 2021-10-30 10:56:39
Added docs for distro pkgs 401c582772303eff8ba7fde3fcf09064d11bf828 Catalin(ux) M. BOIE 2021-10-30 10:47:43
Added a feature island for packages 115412032fca7ad2166ffbc0a526b358ee1006c4 Catalin(ux) M. BOIE 2021-10-28 07:00:14
Fixed spec file a4c1a8218cfc9cc5b822c587fa3fc709e5d2bf6b Catalin(ux) M. BOIE 2021-10-27 19:37:23
Get rid of xinetd ebc765c9a21a9803b67484795625f7eb46642ae9 Catalin(ux) M. BOIE 2021-10-27 14:18:45
Added /etc/ssh/sshd_config.d in .spec file (again) f225de7ddc3d78d4ec3699c63df6fd754500a9e3 Catalin(ux) M. BOIE 2021-10-26 07:05:26
Compare updated to add .rpm info 0d0a890fe98689b7b70987824e98d34ca5204d45 Catalin(ux) M. BOIE 2021-10-26 06:32:39
Fix rg_str_replace regarding ints; .spec small changes 7242f96f08983a70345e2665cfeb1ea592e3f3f7 Catalin(ux) M. BOIE 2021-10-26 06:17:39
builder: fixed immediate exit 27d21c9ef6bb10beaf1d4c8da29a90d649e68b60 Catalin(ux) M. BOIE 2021-10-24 14:41:29
We need .spec file before configure 840c7c3c0dd68c8ff6796b6494ca38afe8f4a5e6 Catalin(ux) M. BOIE 2021-10-24 14:28:59
rgfs: respect the requested size asked to be read f6f9e3f26e9c2bc98c38ded6a732cf53630d5688 Catalin(ux) M. BOIE 2021-10-24 09:25:51
builder: delay 5s if cannot contact the database b672b80542e80439243127aef2de4bda7d884e8a Catalin(ux) M. BOIE 2021-10-24 08:26:35
Commit da8c09e15e485563d9573de3aff2a7ad999d2527 - Rework locking for struct update
Author: Catalin(ux) M. BOIE
Author date (UTC): 2021-11-13 16:15
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2021-11-13 16:15
Parent(s): eccdc02a82ce87f426eebc995988f907d914a3c7
Signing key:
Tree: 51961b7ad1199ea6a078655581168fcebca9327f
File Lines added Lines deleted
inc/struct.inc.php 25 19
File inc/struct.inc.php changed (mode: 100644) (index d36f93f..0264ff3)
... ... function rg_struct_ok($db)
1096 1096 rg_log_enter('struct_ok'); rg_log_enter('struct_ok');
1097 1097
1098 1098 $ret = FALSE; $ret = FALSE;
1099 $locked = FALSE;
1100 1099 do { do {
1101 1100 $restart_cache = FALSE; $restart_cache = FALSE;
1102 1101
 
... ... function rg_struct_ok($db)
1109 1108 if ($uf === FALSE) if ($uf === FALSE)
1110 1109 break; break;
1111 1110 } else { } else {
1112 $uf = 1;
1111 $uf = 0;
1113 1112 } }
1114 1113
1115 if (rg_lock('schema_update.lock', 0) === FALSE)
1116 break;
1117 $locked = TRUE;
1118
1119 if ($ud === 1) {
1120 $r = rg_sql_struct_update($db, 0);
1121 if ($r !== TRUE)
1114 $err = FALSE;
1115 $locked = FALSE;
1116 while ($ud + $uf > 0) {
1117 $err = TRUE;
1118 if (rg_lock('schema_update.lock', 0) === FALSE)
1122 1119 break; break;
1123 }
1120 $locked = TRUE;
1124 1121
1125 if ($uf === 1) {
1126 $r = rg_fixes_update($db);
1127 if ($r !== TRUE)
1128 break;
1129 }
1122 if ($ud === 1) {
1123 $r = rg_sql_struct_update($db, 0);
1124 if ($r !== TRUE)
1125 break;
1126 }
1127
1128 if ($uf === 1) {
1129 $r = rg_fixes_update($db);
1130 if ($r !== TRUE)
1131 break;
1132 }
1130 1133
1131 if ($ud + $uf > 0)
1132 1134 rg_cache_restart(); rg_cache_restart();
1135 $err = FALSE;
1136 break;
1137 }
1138 if ($locked)
1139 rg_unlock('schema_update.lock');
1140 if ($err)
1141 break;
1133 1142
1134 1143 $r = rg_sql_struct_parts_update($db); $r = rg_sql_struct_parts_update($db);
1135 1144 if ($r !== TRUE) if ($r !== TRUE)
 
... ... function rg_struct_ok($db)
1145 1154 $ret = TRUE; $ret = TRUE;
1146 1155 } while (0); } while (0);
1147 1156
1148 if ($locked)
1149 rg_unlock('schema_update.lock');
1150
1151 1157 rg_log_exit(); rg_log_exit();
1152 1158 return $ret; return $ret;
1153 1159 } }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main