From c74d4363d9a12bff39c8ec72261c59ddc7bbf4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rea=20Domitrovi=C4=87?= Date: Mon, 12 Oct 2026 00:56:17 +0200 Subject: [PATCH] Added disclaimer for default behaviour of SHFT and OFFS fields (#989) --- .../database/src/std/rec/fanoutRecord.dbd.pod | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/database/src/std/rec/fanoutRecord.dbd.pod b/modules/database/src/std/rec/fanoutRecord.dbd.pod index 7363f8162..a313f09e1 100644 --- a/modules/database/src/std/rec/fanoutRecord.dbd.pod +++ b/modules/database/src/std/rec/fanoutRecord.dbd.pod @@ -80,16 +80,28 @@ If bit 0 (LSB) is set, LNK0 is processed. =item * -If bit 1 is set, LNK2 is processed. +If bit 1 is set, LNK1 is processed. =item * -If bit 2 is set, LNK3 is processed, etc. +If bit 2 is set, LNK2 is processed, etc. =back =back +If not set, the SHFT field is set to -1, so bits from SELN are shifted left by 1. + +=head4 Note about SHFT and OFFS fields + +The first versions of the fanout record had LNK fields starting with index ONE +(LNK1). The fanout record now supports 16 links, starting from index ZERO (LNK0). +The default behaviour of the SHFT and OFFS fields was introduced for compatibility +with old databases that used fanout records with links indexed from one. + +B + SELN reads its value from SELL. SELL can be a constant, a database link, or a channel access link. If a constant, SELN is initialized with the constant value and can be changed via dbPuts. For database/channel access links, SELN is