Tíquete #34993

clusterLogWriteBinary2
: 2015-03-16 18:39 Última Atualização: 2015-03-18 18:40

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
Nenhum
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

ファイル名: /src/Objects/General/Cluster/src/clusterLogWrite.c
関数名: clusterLogWriteBinary2

【問題内容】
ログの書き込みにclusterLogWriteOneRecordを使用していますが、こちらはclusterLogWriteOneRecordBinary2ではないのでしょうか。

【ソースコード(一部)】44行目付近

 clusterLogOneRecord*
 clusterLogWriteBinary2(clusterLog* in, FILE* fpt, int mode)
 {
			char  s[1024];
			char* stmp;
			clusterLogOneRecord * cluster;
 
			cluster = in->current;
ココです->	return clusterLogWriteOneRecord(cluster, fpt, mode);    
 }

【修正案】該当箇所をclusterLogWriteOneRecordBinary2に変えるだけで良いと考えます。(引数なども同じなので)
 clusterLogOneRecord*
 clusterLogWriteBinary2(clusterLog* in, FILE* fpt, int mode)
 {
			char  s[1024];
			char* stmp;
			clusterLogOneRecord * cluster;
 
			cluster = in->current;
			return clusterLogWriteOneRecordBinary2(cluster, fpt, mode);    
 }

Ticket History (2/2 Histories)

2015-03-16 18:39 Updated by: kinoshita-eos
  • New Ticket "clusterLogWriteBinary2" created
2015-03-18 18:40 Updated by: tacyas
  • Resolução Update from Nenhum to Fixed
  • Estado Update from Aberto to Fechado
  • Ticket Close date is changed to 2015-03-18 18:40
Comentário

有難うございます。 おっしゃるとおりです。なぜそのままになっていたかが理解不能ですね。 ひとまず修正しました。まだバグが残っているかも知れません.

併せて、clusterASCII2Binaryの出力を変更しました。

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login